/*
 * @Description:
 * @Author: maxyang
 * @Date: 2022-06-04 08:00:28
 * @LastEditTime: 2022-06-04 08:13:20
 * @LastEditors: liutq
 * @Reference:
 */
package service

import (
	"github.com/maxyang107/jinglan/common"
	"github.com/maxyang107/jinglan/model/goods"
)

var (
	DrawService = &DrawSer{}
)

type DrawSer struct{}

func (d DrawSer) InsertDrawRecord(query_ common.DrawQuery) error {
	var saveParam goods.DrawRecord

	saveParam.UserId = query_.UserId
	saveParam.GoodsId = query_.GoodsId
	saveParam.DrawStatus = 1

	return goods.InsertDrawRecord(saveParam)
}
